<#--
* RadioList
-->
<#macro RadioList path options labelText=path text="1" value="0" required="" attributes="">
  <@spring.bind path/>
  <div class="layui-form-item">
        <label class="layui-form-label">
            <#if required?contains("required")><b style="color:red;padding:2px;vertical-align: middle;">*</b></#if>${labelText}
        </label>
        <div class="layui-input-block">
        <#if options?has_content>
             <#if options?is_hash>
                 <#list options?keys as keyItem>
                     <#assign id="${spring.status.expression?replace('[','')?replace(']','')}${item_index}">
                     <#assign isSelected = spring.contains(spring.status.value?default("")?split(','), keyItem)>
                     <input type="radio" id="${id}" name="${spring.status.expression}" title="${options[keyItem]?html}" value="${keyItem?html}" lay-verify="${required}" lay-verType="tips" lay-reqText="请选择${labelText}"
                         <#if isSelected=="true">checked="checked"</#if> ${attributes}>
                 </#list>
             <#else> 
                 <#list options as item>
                     <#assign id="${spring.status.expression?replace('[','')?replace(']','')}${item_index}">
                     <#assign isSelected = spring.contains(spring.status.value?default("")?split(','), item[value]?html)>
                     <input type="radio" id="${id}" name="${spring.status.expression}" title="${item[text]?html}" value="${item[value]?html}" lay-verify="${required}" lay-verType="tips" lay-reqText="请选择${labelText}"
                         <#if isSelected=="true">checked="checked"</#if> ${attributes}>
                 </#list>
             </#if>
        <#else>
            <div style="color:red;line-height: 38px; font-weight: bold;">当前列表暂无数据！</div>
        </#if>
        </div>
  </div>
</#macro>